.box {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  @radius: 22px;
  &:focus-within > .wallpaper {
    filter: blur(8px);
  }
  .stateBox {
    position: fixed;
    top: 30px;
    left: 10%;
  }
  .wallpaper {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    background-size: cover;
    min-width: 300px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    transition: filter 0.3s;
    &::after {
      content: "";
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      transform: scale(1.1);
      background: inherit;
      z-index: 2;
    }
  }
  .headBox {
    height: 56px;
    width: 100%;
  }

  //mobile
  @media (max-width: 768px) {
    .frame {
      width: 50%;
      height: 44px;
      min-height: 44px;
    }
    .frame:focus-within {
      width: 80%;
      opacity: 0.7;
    }

    .logo {
      width: 200px;
    }
  }

  .logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    .logoGap {
      width: 100%;
      height: 6vh;
    }
    button img {
      height: 130px;
      width: 130px;
    }
  }
  //computer
  @media (min-width: 768px) {
    .frame {
      width: 280px;
      flex-shrink: 0;
      height: 44px;
      min-height: 44px;
      transition: box-shadow 0.5s;
      &:focus-within {
        width: 561px;
        opacity: 0.7;
        box-shadow: none;
      }

      &:not(:focus-within) {
        box-shadow: 0px 0px 10px #666;
      }
      .input {
        box-shadow: 0px 0px 10px #666;
      }
    }

    .logo {
      width: 200px;
    }
  }

  button {
    background: transparent;
    border: 0;
  }
  .frame {
    transition: all 0.5s;
    box-sizing: border-box;
    position: relative;
    z-index: 9;
    opacity: 0.5;
    border-radius: @radius;
    background-color: #fff;
    // overflow: hidden;
    &:focus-within {
      .menu {
        height: var(--menuHeight);
      }
      .clearIcon {
        opacity: 1;
      }
      .searchIcon {
        left: 12px;
        transform: none;
      }
    }
    .clearIcon {
      top: 10px;
      position: absolute;
      right: 12px;
      @imgSize: 24px;
      height: @imgSize;
      width: @imgSize;
      opacity: 0;
      transition: opacity 0.5s;
      z-index: 10;
    }
    .searchIcon {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      transition: left 0.5s, transform 0.5s;
      @imgSize: 24px;
      height: @imgSize;
      width: @imgSize;
      z-index: 2;
    }

    &:not(:focus-within) {
      .input {
        opacity: 0;
        z-index: 3;
      }
    }

    .input {
      width: 100%;
      height: 44px;
      font-size: 16px;
      border-radius: @radius;
      border: 0;
      outline: none;
      padding: 0 50px;
      box-sizing: border-box;
      text-align: center;
      position: relative;
      opacity: 1;
      transition: all 0.5s;
      z-index: 2;
      // &:not(:focus) {
      //   opacity: 0;
      //   z-index: 3;
      // }
    }

    .menu {
      width: 100%;
      overflow: hidden;
      border-bottom-right-radius: @radius;
      border-bottom-left-radius: @radius;
      transform: translateY(-15px);
      background-color: #fff;
      height: 0;
      transition: height 0.5s;
    }
  }
}

.directive input {
  font-weight: bold;
  color: red;
}
